class CreateDeclarations < ActiveRecord::Migration
  def self.up
    transaction do
      create_table :declarations do |table|
        table.column :user_id, :integer, :null => false
        table.column :amount, :integer, :null => false
        table.column :description, :string, :null => false
        table.column :created_at, :datetime
        table.column :updated_at, :datetime
      end
    end
  end
  
  def self.down
    drop_table :declarations
  end
end